package edu.gyc.hiwxm.controller;


import edu.gyc.hiwxm.service.ImageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author ls
 * @since 2019-12-30
 */
@Controller

public class ImageController {
    @Autowired
    private ImageService imageService;
    @RequestMapping("/list")
    public String index(Model model) {
        model.addAttribute("imageData", imageService.list());
        return "list";
    }


}

